package com.xiyu.service.enums.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 日历类型
*/
@Getter
@AllArgsConstructor
public enum CalendarTypeEnum implements IntArrayValuable {

    /**
    * 阳历
    */
    SOLAR_CALENDAR(0, "阳历"),
    /**
    * 阴历
    */
    LUNAR_CALENDAR(1, "阴历");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(CalendarTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(CalendarTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
